import request from '@/utils/request'

// 查询意见列表
export function listAdvise(query) {
  return request({
    url: '/com/advise/list',
    method: 'get',
    params: query
  })
}

// 查询意见详细
export function getAdvise(adviseId) {
  return request({
    url: '/com/advise/' + adviseId,
    method: 'get'
  })
}

// 新增意见
export function addAdvise(data) {
  return request({
    url: '/com/advise',
    method: 'post',
    data: data
  })
}

// 修改意见
export function updateAdvise(data) {
  return request({
    url: '/com/advise',
    method: 'put',
    data: data
  })
}

// 删除意见
export function delAdvise(adviseId) {
  return request({
    url: '/com/advise/' + adviseId,
    method: 'delete'
  })
}

// 导出意见
export function exportAdvise(query) {
  return request({
    url: '/com/advise/export',
    method: 'get',
    params: query
  })
}